<?php
/**
 * @param sfForm $form Login form
 */
?>
<?php use_helper('I18N') ?>
<?php $routes = $sf_context->getRouting()->getRoutes();?>

<form action="<?php echo url_for('@sf_guard_signin') ?>" method="post" class="form label-top">

	<div id="login">
		
		<?php echo $form->renderHiddenFields(); ?>
		<?php echo $form->renderGlobalErrors();?>
		
		<div class="field">
			<?php echo $form['username']->renderLabel('Benutzername');?>
			<?php echo $form['username']->render();?>
		</div>
		
		<div class="field">
			<?php echo $form['password']->renderLabel('Passwort');?>
			<?php echo $form['password']->render();?>
		</div>
		
		<!--  
		<?php if (isset($routes['sf_guard_forgot_password'])): ?>
			<a href="<?php echo url_for('@sf_guard_forgot_password') ?>"><?php echo __('Passwort vergessen?', null, 'sf_guard') ?></a>
		<?php endif; ?>
		
		<?php if (isset($routes['sf_guard_register'])): ?>
			&nbsp; <a href="<?php echo url_for('@sf_guard_register') ?>"><?php echo __('Registrieren!', null, 'sf_guard') ?></a>
		<?php endif; ?>
		-->
		
		<input class="btn" type="submit" value="Anmelden" />
		
	</div>
	
</form>